package com.yungee.system.controller;

import com.alibaba.fastjson.JSONObject;
import com.yungee.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户信息表 前端控制器
 * </p>
 *
 * @author auto-generate
 * @since 2024-03-14
 */
@RestController
@RequestMapping("/system/sysUser")
public class SysUserController {
    @Autowired
    private SysUserService sysUserService;

    @RequestMapping("/get")
    public String user(Long id) {
        return JSONObject.toJSONString(sysUserService.getById(id));
    }

}
